﻿using GameEditor.View.Components;
using GameEngine.Model;
using PureMVC.Interfaces;
using PureMVC.Patterns;
using System;

namespace GameEditor.Commands
{
    public class Page_ViewEditorMenu_Action_Command<MyIdType> : SimpleCommand
        where MyIdType : IComparable<MyIdType>
    {
        override public void Execute(INotification notification)
        {
            //Facade.RemoveMediator(MyFacade.GameEditorMenuMediatorName);
            switch ((IViewEditorMenuViewConstants.ButtonTags)notification.Body)
            {
                //case IViewEditorMenuViewConstants.ButtonTags.CANCEL:
                //    SendNotification(MyFacade.MY_PAGE_GAMEEDITOR_IN_COMMAND);
                //    break;
                //case IViewEditorMenuViewConstants.ButtonTags.OK:

                //    SendNotification(MyFacade.MY_PAGE_GAMEEDITOR_IN_COMMAND);
                //    break;
                case IViewEditorMenuViewConstants.ButtonTags.ADDSHAPE:

                    //SendNotification(MyFacade.MY_PAGE_GAMEEDITOR_IN_COMMAND);
                    break;
                //case IViewEditorMenuViewConstants.ButtonTags.NEWLEVEL:
                //    var level = new LevelVO<int>(new LevelVOId<int>(MyModelFacade.Instance.CreateNewId()));
                //    MyFacadeHelper.CreateLevel(level);
                //    var dataProxy = MyModelFacade.Helper.GetLevelDataProxy(level);
                //    SendNotification(MyFacade.MY_PAGE_LEVELEDITOR_IN_COMMAND, dataProxy);
                //    break;
                //case IViewEditorMenuViewConstants.ButtonTags.EDITRESOURCEBUTTON:
                //    //SendNotification(MyFacade.PAGE_EDITORLOADGAME_IN_COMMAND);
                //    break;
            }
        }
    }
}
